#define _CRT_SECURE_NO_WARNINGS 1
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d", &n);
    int b = 0;
    int c = 0;
    float sum = 0.0;
    float num = 0;
    for (int i = 0; i < n; i++)
    {
        int a = 0;
        scanf("%d", &a);
        if (a < 0)
        {
            b++;
        }
        if (a > 0)
        {
            sum = sum + a;

        }
        if (a == 0)
        {
            c++;
        }


    }
    if (sum != 0)
    {
        num = sum / (n - b - c);
        printf("%d %.1f", b, num);
    }
    else {
        printf("0 0.0");

    }
    return 0;
}